home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / bounce_c.swf / scripts / frame_31 / DoAction.as
Text File  |  2010-11-09  |  2KB  |  113 lines

  1. stop();
  2. removeAllClips();
  3. alpha1 = 0;
  4. alpha2 = 0;
  5. alpha3 = 0;
  6. alpha4 = 0;
  7. alphaTime = 0;
  8. back3._alpha = 0;
  9. back2._alpha = 0;
  10. back1._alpha = 0;
  11. _root.onEnterFrame = function()
  12. {
  13.    if(alpha4 != 100)
  14.    {
  15.       if(alpha3 == 100)
  16.       {
  17.          alpha4 += 10;
  18.       }
  19.       else if(alpha2 == 100)
  20.       {
  21.          alpha3 += 10;
  22.       }
  23.       else if(alpha1 == 100)
  24.       {
  25.          alpha2 += 10;
  26.       }
  27.       else if(alphaTime == 100)
  28.       {
  29.          alpha1 += 10;
  30.       }
  31.       else
  32.       {
  33.          alphaTime += 10;
  34.       }
  35.    }
  36.    back3._x = -440 + _xmouse / 1.5;
  37.    back2._x = -300 + _xmouse / 4;
  38.    back1._x = -230 + _xmouse / 8;
  39.    back3._alpha = alpha3;
  40.    back2._alpha = alpha2;
  41.    back1._alpha = alpha1;
  42.    tutorialBox._alpha = alpha4;
  43.    tutorialBox.onRollOver = function()
  44.    {
  45.       this._xscale = 120;
  46.       this._yscale = 120;
  47.    };
  48.    tutorialBox.onRollOut = function()
  49.    {
  50.       this._xscale = 100;
  51.       this._yscale = 100;
  52.    };
  53.    tutorialBox.onPress = function()
  54.    {
  55.       _root.gotoAndStop("tutorial");
  56.    };
  57.    max_games._alpha = alpha4;
  58.    max_games.onRollOver = function()
  59.    {
  60.       this._xscale = 120;
  61.       this._yscale = 120;
  62.    };
  63.    max_games.onRollOut = function()
  64.    {
  65.       this._xscale = 100;
  66.       this._yscale = 100;
  67.    };
  68.    max_games.onPress = function()
  69.    {
  70.       getUrl("http://www.maxgames.com", "_blank");
  71.    };
  72. };
  73. var i = 1;
  74. while(i <= 3)
  75. {
  76.    _root["menu" + i].menuText.gotoAndStop(i);
  77.    _root["menu" + i]._xscale = 80;
  78.    _root["menu" + i]._yscale = 80;
  79.    _root["menu" + i]._alpha = 0;
  80.    _root["menu" + i].j = i;
  81.    _root["menu" + i].onPress = function()
  82.    {
  83.       if(this.j == 1)
  84.       {
  85.          _root.gotoAndStop("gameOptions");
  86.       }
  87.       if(this.j == 2)
  88.       {
  89.          _root.gotoAndStop("levelSelect");
  90.       }
  91.       if(this.j == 3)
  92.       {
  93.          _root.gotoAndStop("gameCredits");
  94.       }
  95.    };
  96.    _root["menu" + i].onRollOver = function()
  97.    {
  98.       this.play();
  99.       this._xscale = 110;
  100.       this._yscale = 110;
  101.    };
  102.    _root["menu" + i].onRollOut = function()
  103.    {
  104.       this._xscale = 80;
  105.       this._yscale = 80;
  106.    };
  107.    _root["menu" + i].onEnterFrame = function()
  108.    {
  109.       this._alpha = alpha4;
  110.    };
  111.    i++;
  112. }
  113.